package com.fenghongzhang.module_main.ui.search

import android.content.Context
import com.fenghongzhang.module_main.R


object MySocialConfig {
    const val POST_CATEGORY_HOT = 2

    fun getTabTitles(ctx: Context, ifPublish: Boolean = false): List<String> {
        val list = arrayListOf<String>()
        list.add(ctx.getString(R.string.string_post))
        if (!ifPublish) {// 非发布时 需要展示资讯Tab
            list.add(ctx.getString(R.string.string_information))
        }
        list.add(ctx.getString(R.string.string_dynamic))
        list.add(ctx.getString(R.string.string_route))
        list.add(ctx.getString(R.string.string_team))
        return list
    }

    /** 类型(1:帖子 2:文章 3:指南 4:话题 5:动态: 6:资讯 7:路线 8:组队 9:商品) */
    const val POST = 1
    const val ARTICLE = 2
    const val GUIDE = 3
    const val TOPIC = 4
    const val DYNAMIC = 5
    const val INFORMATION = 6
    const val ROUTE = 7
    const val TEAM = 8
    const val MALL_GOODS = 9
    /** 不得随意改变,和后台保持一致 */
}